home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 66 65 65 64 2e 67 |Path: ne|wsfeed.g|
|00000010| 73 66 63 2e 6e 61 73 61 | 2e 67 6f 76 21 75 73 65 |sfc.nasa|.gov!use|
|00000020| 6e 65 74 0a 46 72 6f 6d | 3a 20 44 69 72 6b 20 42 |net.From|: Dirk B|
|00000030| 72 6f 65 72 20 3c 44 69 | 72 6b 2e 42 72 6f 65 72 |roer <Di|rk.Broer|
|00000040| 40 67 73 66 63 2e 6e 61 | 73 61 2e 67 6f 76 3e 0a |@gsfc.na|sa.gov>.|
|00000050| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000060| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 53 75 62 6a 65 63 |.lang.c+|+.Subjec|
|00000070| 74 3a 20 52 65 3a 20 4f | 76 65 72 6c 6f 61 64 69 |t: Re: O|verloadi|
|00000080| 6e 67 20 6f 70 65 72 61 | 74 6f 72 20 5b 5d 5b 5d |ng opera|tor [][]|
|00000090| 20 61 73 20 69 6e 20 41 | 5b 5d 5b 5d 3a 20 70 6f | as in A|[][]: po|
|000000a0| 73 73 69 62 6c 65 3f 21 | 0a 44 61 74 65 3a 20 53 |ssible?!|.Date: S|
|000000b0| 61 74 2c 20 31 30 20 46 | 65 62 20 31 39 39 36 20 |at, 10 F|eb 1996 |
|000000c0| 31 33 3a 31 35 3a 35 38 | 20 2d 30 38 30 30 0a 4f |13:15:58| -0800.O|
|000000d0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 4e 41 53 |rganizat|ion: NAS|
|000000e0| 41 20 47 6f 64 64 61 72 | 64 20 53 70 61 63 65 20 |A Goddar|d Space |
|000000f0| 46 6c 69 67 68 74 20 43 | 65 6e 74 65 72 20 2d 2d |Flight C|enter --|
|00000100| 20 47 72 65 65 6e 62 65 | 6c 74 2c 20 4d 61 72 79 | Greenbe|lt, Mary|
|00000110| 6c 61 6e 64 20 55 53 41 | 0a 4d 65 73 73 61 67 65 |land USA|.Message|
|00000120| 2d 49 44 3a 20 3c 33 31 | 31 44 30 42 30 45 2e 33 |-ID: <31|1D0B0E.3|
|00000130| 33 36 35 40 67 73 66 63 | 2e 6e 61 73 61 2e 67 6f |365@gsfc|.nasa.go|
|00000140| 76 3e 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |v>.Refer|ences: <|
|00000150| 33 31 31 46 36 45 39 32 | 2e 37 39 34 42 44 46 33 |311F6E92|.794BDF3|
|00000160| 32 40 63 65 6e 70 61 72 | 6d 69 2e 63 6f 6e 63 6f |2@cenpar|mi.conco|
|00000170| 72 64 69 61 2e 63 61 3e | 0a 4e 4e 54 50 2d 50 6f |rdia.ca>|.NNTP-Po|
|00000180| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 63 6f 6e 74 |sting-Ho|st: cont|
|00000190| 72 6f 6c 2e 67 73 66 63 | 2e 6e 61 73 61 2e 67 6f |rol.gsfc|.nasa.go|
|000001a0| 76 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |v.Mime-V|ersion: |
|000001b0| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|000001c0| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|000001d0| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 43 |arset=us|-ascii.C|
|000001e0| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|000001f0| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|00000200| 2d 4d 61 69 6c 65 72 3a | 20 4d 6f 7a 69 6c 6c 61 |-Mailer:| Mozilla|
|00000210| 20 32 2e 30 62 35 20 28 | 57 69 6e 31 36 3b 20 49 | 2.0b5 (|Win16; I|
|00000220| 29 0a 54 6f 3a 20 44 69 | 64 69 65 72 20 47 75 69 |).To: Di|dier Gui|
|00000230| 6c 6c 65 76 69 63 20 3c | 64 69 64 69 65 72 40 63 |llevic <|didier@c|
|00000240| 65 6e 70 61 72 6d 69 2e | 63 6f 6e 63 6f 72 64 69 |enparmi.|concordi|
|00000250| 61 2e 63 61 3e 0a 0a 44 | 69 64 69 65 72 20 47 75 |a.ca>..D|idier Gu|
|00000260| 69 6c 6c 65 76 69 63 20 | 77 72 6f 74 65 3a 0a 3e |illevic |wrote:.>|
|00000270| 20 0a 3e 20 42 6f 6e 6a | 6f 75 72 2c 0a 3e 20 0a | .> Bonj|our,.> .|
|00000280| 3e 20 4c 65 61 72 6e 69 | 6e 67 20 43 2b 2b 20 61 |> Learni|ng C++ a|
|00000290| 74 20 74 68 65 20 6d 6f | 6d 65 6e 74 2e 2e 2e 2e |t the mo|ment....|
|000002a0| 0a 3e 20 41 6e 79 20 77 | 61 79 20 74 6f 20 6f 76 |.> Any w|ay to ov|
|000002b0| 65 72 6c 6f 61 64 20 74 | 68 65 20 69 6e 64 65 78 |erload t|he index|
|000002c0| 69 6e 67 20 6f 66 20 61 | 20 32 20 64 69 6d 65 6e |ing of a| 2 dimen|
|000002d0| 73 69 6f 6e 61 6c 20 61 | 72 72 61 79 2c 20 61 73 |sional a|rray, as|
|000002e0| 20 69 6e 0a 3e 20 0a 3e | 20 20 20 41 5b 69 5d 5b | in.> .>| A[i][|
|000002f0| 6a 5d 0a 3e 20 0a 3e 20 | 49 66 20 70 6f 73 73 69 |j].> .> |If possi|
|00000300| 62 6c 65 2c 20 49 20 77 | 6f 75 6c 64 20 70 72 65 |ble, I w|ould pre|
|00000310| 66 65 72 20 74 6f 20 61 | 76 6f 69 64 20 75 73 69 |fer to a|void usi|
|00000320| 6e 67 20 61 20 6e 6f 74 | 61 74 69 6f 6e 20 73 75 |ng a not|ation su|
|00000330| 63 68 20 61 73 3a 0a 3e | 20 0a 3e 20 20 20 41 28 |ch as:.>| .> A(|
|00000340| 69 2c 6a 29 0a 3e 20 0a | 3e 20 54 68 61 6e 6b 73 |i,j).> .|> Thanks|
|00000350| 2e 2e 2e 0a 3e 20 0a 0a | 41 63 74 75 61 6c 6c 79 |....> ..|Actually|
|00000360| 20 69 74 73 20 71 75 69 | 74 65 20 73 69 6d 70 6c | its qui|te simpl|
|00000370| 65 2e 0a 0a 27 41 27 20 | 69 73 20 61 63 74 75 61 |e...'A' |is actua|
|00000380| 6c 6c 79 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |lly a po|inter to|
|00000390| 20 61 20 70 6f 69 6e 74 | 65 72 2e 0a 0a 53 6f 20 | a point|er...So |
|000003a0| 64 65 66 69 6e 65 0a 0a | 3c 54 3e 09 26 6f 70 65 |define..|<T>.&ope|
|000003b0| 72 61 74 6f 72 20 2a 2a | 28 29 3b 0a 0a 49 20 77 |rator **|();..I w|
|000003c0| 6f 75 6c 64 20 61 6c 73 | 6f 20 64 65 66 69 6e 65 |ould als|o define|
|000003d0| 0a 0a 3c 54 3e 09 26 6f | 70 65 72 61 74 6f 72 20 |..<T>.&o|perator |
|000003e0| 2a 28 29 3b 0a 0a 62 75 | 74 20 69 74 20 6d 61 79 |*();..bu|t it may|
|000003f0| 20 63 61 75 73 65 20 63 | 6f 6e 66 6c 69 63 74 73 | cause c|onflicts|
|00000400| 20 77 69 74 68 20 74 68 | 65 20 61 62 6f 76 65 2e | with th|e above.|
|00000410| 0a 0a 4e 6f 74 65 3a 20 | 20 49 66 20 79 6f 75 20 |..Note: | If you |
|00000420| 77 61 6e 74 20 74 6f 20 | 70 61 73 73 20 61 20 6d |want to |pass a m|
|00000430| 75 6c 74 69 2d 64 69 6d | 65 6e 73 69 6f 6e 61 6c |ulti-dim|ensional|
|00000440| 20 61 72 72 61 79 20 74 | 6f 20 61 20 66 75 6e 63 | array t|o a func|
|00000450| 74 69 6f 6e 20 2d 20 64 | 6f 6e 27 74 20 0a 64 65 |tion - d|on't .de|
|00000460| 66 69 6e 65 20 74 68 65 | 20 66 75 6e 63 74 69 6f |fine the| functio|
|00000470| 6e 20 6c 69 6b 65 20 74 | 68 69 73 3a 0a 0a 76 6f |n like t|his:..vo|
|00000480| 69 64 09 66 75 6e 63 28 | 20 3c 54 3e 20 20 20 41 |id.func(| <T> A|
|00000490| 5b 33 5d 20 29 20 20 20 | 2f 2f 20 77 72 6f 6e 67 |[3] ) |// wrong|
|000004a0| 21 21 21 0a 0a 69 6e 73 | 74 65 61 64 20 74 72 79 |!!!..ins|tead try|
|000004b0| 3a 0a 0a 76 6f 69 64 09 | 66 75 6e 63 28 20 3c 54 |:..void.|func( <T|
|000004c0| 3e 20 2a 2a 41 20 29 20 | 2f 2f 20 62 65 74 74 65 |> **A ) |// bette|
|000004d0| 72 2e 0a 0a 52 65 6d 65 | 6d 62 65 72 20 74 68 61 |r...Reme|mber tha|
|000004e0| 74 20 77 68 65 6e 20 79 | 6f 75 20 74 72 79 20 74 |t when y|ou try t|
|000004f0| 6f 20 61 63 65 73 73 20 | 41 5b 69 5d 5b 6a 5d 20 |o acess |A[i][j] |
|00000500| 74 68 65 20 5b 69 5d 20 | 69 73 20 65 76 61 6c 75 |the [i] |is evalu|
|00000510| 61 74 65 64 20 66 69 72 | 73 74 20 61 6e 64 20 0a |ated fir|st and .|
|00000520| 74 68 65 6e 20 74 68 65 | 20 5b 6a 5d 2e 20 20 41 |then the| [j]. A|
|00000530| 20 69 73 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f | is a po|inter to|
|00000540| 20 61 20 70 6f 69 6e 74 | 65 72 20 6f 66 20 3c 54 | a point|er of <T|
|00000550| 3e 20 41 5b 69 5d 20 69 | 73 20 61 20 70 6f 69 6e |> A[i] i|s a poin|
|00000560| 74 65 72 20 74 6f 20 3c | 54 3e 2e 0a 41 5b 69 5d |ter to <|T>..A[i]|
|00000570| 5b 6a 5d 20 69 73 20 3c | 54 3e 2e 0a 0a 49 27 6d |[j] is <|T>...I'm|
|00000580| 20 6e 6f 74 20 73 75 72 | 65 20 69 66 20 79 6f 75 | not sur|e if you|
|00000590| 20 63 61 6e 20 61 6c 6c | 6f 63 61 74 65 20 41 20 | can all|ocate A |
|000005a0| 69 6e 20 6f 6e 65 20 73 | 74 61 74 65 6d 65 6e 74 |in one s|tatement|
|000005b0| 2e 20 20 49 6e 20 74 68 | 65 20 70 61 73 74 20 49 |. In th|e past I|
|000005c0| 20 68 61 76 65 20 0a 61 | 6c 6c 6f 63 61 74 65 64 | have .a|llocated|
|000005d0| 20 41 20 69 6e 20 61 20 | 6c 6f 6f 70 20 2d 20 66 | A in a |loop - f|
|000005e0| 69 72 73 74 20 61 6c 6c | 6f 63 61 74 65 20 74 68 |irst all|ocate th|
|000005f0| 65 20 5b 69 5d 20 64 69 | 6d 65 6e 73 69 6f 6e 20 |e [i] di|mension |
|00000600| 74 68 65 6e 20 5b 6a 5d | 20 66 6f 72 20 65 61 63 |then [j]| for eac|
|00000610| 68 20 0a 6f 66 20 74 68 | 65 20 5b 69 5d 2e 0a 0a |h .of th|e [i]...|
|00000620| 44 69 72 6b 0a | |Dirk. | |
+--------+-------------------------+-------------------------+--------+--------+